Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

341
Vistas
Uncaught DOMException: Blocked a frame with origin "http://subdomain.lvh.me:3000" from accessing a cross-origin frame (http://lvh.me:3000)

Well, I'm trying to run an iframe or window.open in my subdomain page to access the domain page for Google Login permission purposes. But i'm getting the cross origin error.

My principal page is: http://subdomain.lvh.me:3000

And when I click on the button, a new pages open or the iframe opens (does not make difference) with the URL: http://lvh.me:3000

But in this way I can't access iframe.contentWindow.document to get the iframe content value from the principal page. That is the situation: Image error

And, when I try to send by window.postMessage, this is the error: postMessage error

Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('http://subdomin.lvh.me:3001') does not match the recipient window's origin ('http://lvh.me:3001').

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

You need to set the targetOrigin field when using postMessage to another domain

postMessage(‘hello world’, ’http://lvh.me:3000/’)
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda